* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 1800px;
  max-width: 1920px;
  min-height: 960px;
  max-height: 1080px;
  margin: 0 auto;
  background-color: #041a21;
  #toast {
    position: absolute;
    right: 60px;
    bottom: 100px;
  }
}

header {
  flex: 0 0 60px;
  display: flex;
  position: relative;
  margin: 4px 0 16px;
  background-image: url("../images/header-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2rem;
    letter-spacing: 4px;
  }
}

.status-bar {
  flex: 0 0 40px;
  margin: 0 32px 16px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  background-color: #fff;
  .status {
    font-weight: 600;
    color: #fd7e14;
    &.ready {
      color: #198754;
    }
  }
  .progress-box {
    display: flex;
    align-items: center;
    gap: 8px;
    .progress {
      width: 340px;
      .progress-bar {
        transition: unset;
      }
    }
    #progress-percent {
      width: 42px;
      text-align: right;
    }
    strong {
      display: inline-block;
    }
  }
}

main {
  flex: 1;
  display: flex;
  margin: 0 32px 16px;
  padding: 8px;
  background-color: #c9c9c9;
  border-radius: 8px;
  overflow: auto;
  section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 4px;
    padding: 16px;
    .subtitle {
      display: flex;
      justify-content: space-between;
      border-bottom: 2px solid #efefef;
      color: #3d3d3d;
    }
    .photo-wall {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(128px, auto));
      justify-content: center;
      align-content: start;
      gap: 12px;
      // background-color: plum;
      width: 100%;
      height: 720px;
      margin: 16px auto;
      overflow: auto;
      img {
        width: 128px;
        height: 128px;
        background-color: rgb(156, 156, 156);
      }
    }
    &.right .photo-wall {
      height: 660px;
    }
    .setting {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 16px;
      position: relative;
      top: -16px;
      left: -16px;
      width: calc(100% + 32px);
      padding: 8px;
      border-radius: 4px 4px 0 0;
      background: #0d5f7a;
      label {
        display: flex;
        align-items: center;
        color: #fff;
        white-space: nowrap;
      }
      input {
        width: 50px;
        padding: 4px;
      }
      img {
        width: 24px;
        height: 24px;
      }
    }
  }
  section.left {
    margin-right: 8px;
  }
}

footer {
  flex: 0 0 60px;
  display: flex;
  margin: 0 32px 16px;
  padding: 16px;
  align-items: center;
  justify-content: space-between;
  background-color: #0d5f7a;
  border-radius: 8px;
  overflow: hidden;
  .address {
    display: flex;
    align-items: center;
    label {
      color: #fff;
      white-space: nowrap;
      &.switch {
        margin-right: 16px;
      }
    }
    input {
      width: 240px;
      margin-right: 16px;
    }
    img {
      width: 28px;
      height: 28px;
    }
    strong {
      font-size: 20px;
      font-weight: 700;
      color: #fff;
      margin-right: 16px;
      white-space: nowrap;
    }
    button {
      white-space: nowrap;
      margin-right: 16px;
    }
  }
}
